import request from '@/utils/request';

// 查询知识点
export function getKnowledgeList(params) {
	return request({
		method: 'get',
		url: '/sysKnowledge/query',
		params
	});
}

//新增知识点
export function addedKnowledge(data) {
	return request({
		method: 'post',
		url: '/sysKnowledge/add',
		data
	});
}

//修改知识点
export function updateKnowledge(data) {
	return request({
		method: 'post',
		url: '/sysKnowledge/update',
		data
	});
}

//删除知识点
export function deleteKnowledge(id) {
	return request({
		method: 'get',
		url: '/sysKnowledge/delete/' + id
	});
}

//查询知识点树
export function queryKnowledge(id) {
	return request({
		method: 'get',
		url: '/sysKnowledge/query/' + id
	});
}